import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';

import { rootRouterConfig } from './app.routes';

import { AppComponent } from './app.component';
import { CardlistComponent } from './cardlist/cardlist.component';
import { CourseslistComponent } from './courseslist/courseslist.component';
import { FaqComponent } from './faq/faq.component';
import { FeedbackComponent } from './faq/feedback.component';
import { HttpRouter } from './service/httpRouter'
import { HttpService } from './service/httpService';
import { TestComponent } from './test/test.component';
import { CardlistlocalComponent } from './cardlistlocal/cardlistlocal.component';

@NgModule({
  declarations: [
    AppComponent,
    CardlistComponent,
    CourseslistComponent,
    FaqComponent,
    FeedbackComponent,
    TestComponent,
    CardlistlocalComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule.forRoot(rootRouterConfig,{useHash:true})
  ],
  providers: [ HttpRouter, HttpService ],
  bootstrap: [AppComponent]
})
export class AppModule { }
